package com.think.oauth.user.service;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.think.oauth.user.dao.user.PermissionDao;
import com.think.oauth.user.model.Permission;

@Service
public class PermissionService extends ServiceImpl<PermissionDao, Permission>{


	public IPage<Map<String, Object>> getPermissionTree(Integer page,Integer count,String client){
		
		return baseMapper.getRolePermissionTrees(new Page<Map<String,Object>>(page,count),client);
	}
}
